package com.xy.tianyu.module.picture.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xy.tianyu.R
import com.xy.tianyu.module.picture.bean.S
import com.xy.tianyu.module.picture.bean.SearchDayItem
import com.xy.tianyu.utils.GlideUtils

/**
 * @time 2020/10/13 15:54
 * @class 描述:
 */
class PicCategoryMoreOneAdapter(layoutResId: Int, data:MutableList<S>):
    BaseQuickAdapter<S, BaseViewHolder>(layoutResId,data)  {
    override fun convert(holder: BaseViewHolder, item: S) {
        val mIvPicHot = holder.getView<ImageView>(R.id.iv_pic_cate_one)

        Glide.with(context).load(item.u).apply(GlideUtils.getRoundRequestOptions()).into(mIvPicHot)
        holder.setText(R.id.tv_pic_cate_one_name,item.t)

    }

}